/*
 *  Copyright 2012 Anton Van Zyl. http://code.google.com/p/java-swiss-knife/
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */

package com.knife.web.net;

/**
 * Content Disposition is the display type:
 * <ul>
 * <li>Attachment - set it to be download</li>
 * <li>Inline - Set it to be displayed in browser, if browser is incompatible,
 * file wil be downloaded</li>
 * </ul>
 * 
 * <br/>
 * <br/>
 * Please visit <a
 * href="http://code.google.com/p/java-swiss-knife/">Java-Swiss-Knife</a> and
 * comment, rate, contribute or raise a issue/enhancement for my library. <br/>
 * 
 * @author Anton Van Zyl
 * 
 */
public enum ContentDisposition {
	/**
	 * Set the file to be download
	 */
	ATTACHMENT("attachment"),
	/**
	 * Set it to be displayed in browser, if browser is incompatible, file wil
	 * be downloaded
	 */
	INLINE("inline");
	private String value;

	private ContentDisposition(String value) {
		this.value = value;
	}

	/**
	 * Used to get the String interpretation that is needed
	 * 
	 * @return
	 */
	public String getValue() {
		return value;
	}
}
